﻿
//登陆
function Log() {
    if (this.req.responseText == "Passed") {
        var name = document.getElementById("name").value;
        document.getElementById("login").innerHTML = "<input  id = 'name' type='text' readonly='true'  value='" + name + "'/>Hello!";
        if (document.getElementById("myFriendsList").innerText == "") {
            document.getElementById("myFriendsList").innerText = "加载中…";
        }
        Listen();
    }
    else {
        document.getElementById("login").innerHTML += "登陆失败";
    }
}
function UserLog(source) {
    var name = document.getElementById("name").value;
    var pw = document.getElementById("password").value;
    if (name == "" || pw == "") return;
    var url = "AjaxResponse/Login.aspx?name=" + name + "&password=" + pw;
    new ContentLoader(url,  Log);

}
    